home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / patches / ip20t21a.lha / IFX20to21a_Patch / Patches2.lha / Rexx / AutoFX / RenameOneForSequence.ifx < prev    next >
Text File  |  1995-03-20  |  774b  |  36 lines

  1. /*
  2.  * RenameOneForSequence.ifx
  3.  * Written by Thomas Krehbiel
  4.  *
  5.  * Rename single frame to a sequence basename and number.
  6.  *
  7.  * Inputs:
  8.  *    Word(Arg(1),1) = Frame number (1 - N)
  9.  *    Word(Arg(1),2) = Main filename ("-" if not specified)
  10.  *    Word(Arg(1),3) = Swap filename ("-" if not specified)
  11.  *    Word(Arg(1),4) = Sequence number (?)
  12.  *    Word(Arg(1),5) = Total number of frames (N)
  13.  *
  14.  * Returns:
  15.  *    0 if successful, non-zero on failure
  16.  *
  17.  */
  18.  
  19. OPTIONS RESULTS
  20.  
  21. framenum = Word(Arg(1),1)
  22. fullpath = Word(Arg(1),2)
  23.  
  24. basename = GETCLIP('Autofx_RenameOneSeq_Base')
  25. num = GETCLIP('Autofx_RenameOneSeq_Count')
  26.  
  27. DO i = 1 TO num
  28.  
  29.    newfilename = basename||RIGHT('00000'||i,5)
  30.    Message newfilename
  31.    ADDRESS COMMAND 'Copy CLONE' fullpath newfilename
  32.  
  33.    END
  34.  
  35. EXIT
  36.